<?php

namespace hiduoke\services\upload;

use hiduoke\base\BaseManager;
use think\facade\Config;
/**
 * Class Upload
 * @package hiduoke\services\upload
 * @mixin \hiduoke\services\upload\driver\Local
 * @mixin \hiduoke\services\upload\driver\OSS
 * @mixin \hiduoke\services\upload\driver\COS
 * @mixin \hiduoke\services\upload\driver\Kodo
 */
class Upload extends  BaseManager
{
    /**
     * 空间名
     * @var string
     */
    protected $namespace = '\\hiduoke\\services\\upload\\driver\\';

    /**
     * 设置默认上传类型
     * @return mixed
     */
    protected function getDefaultDriver()
    {
        return Config::get('upload.default', 'local');
    }
}
